//include sprite, matrix and matrixfx libraries
#include "Sprite.h"
#include "Matrix.h"
#include <MatrixFX.h>

const int dataPin = 3;
const int clockPin = 4;
const int loadPin = 5;

//initialise matrix library
MatrixFX fx = MatrixFX(dataPin, clockPin, loadPin);

/**
 * Sets up the application
 */
void setup() { 
    fx.setBrightness(10);  //set the initial brightness
    fx.initEffect(rain);
}

/**
 * Main program loop.
 */
void loop() {
    fx.update();
    delay(75);
}
